package cn.findviewbydream.evil.main.entity

import java.io.Serializable
import java.util.*

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-12-21
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：员工实体
 ********************************************/
class EmployeeEntity : Serializable
{
    var employeeId = ""/*员工的工号 服务员 F+yymmdd+序号 厨师 C+yymmdd+序号*/
    var name = ""/*员工姓名*/
    var typeOfWork: BaseTypeOfWorkEntity? = null/*工种*/
    var salary = 0/*薪水*/
    var bonus: Int? = null/*奖金*/
    var entryDateTime: Date? = null/*入职时间*/
    var leaveDateTime: Date? = null/*离职时间*/

    constructor()
    constructor(employeeId: String, name: String, typeOfWork: BaseTypeOfWorkEntity?, salary: Int, bonus: Int?,
                entryDateTime: Date?, leaveDateTime: Date?)
    {
        this.employeeId = employeeId
        this.name = name
        this.typeOfWork = typeOfWork
        this.salary = salary
        this.bonus = bonus
        this.entryDateTime = entryDateTime
        this.leaveDateTime = leaveDateTime
    }


    override fun toString(): String
    {
        return "EmployeeEntity(employeeId=$employeeId, name='$name', typeOfWork=$typeOfWork, salary=$salary, bonus=$bonus, entryDateTime=$entryDateTime, leaveDateTime=$leaveDateTime)"
    }
}